home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group97b.txt / 000073_icon-group-sender _Mon Sep 22 08:22:06 1997.msg < prev    next >
Internet Message Format  |  2000-09-20  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by cheltenham.cs.arizona.edu (8.8.7/8.8.7) with SMTP id IAA19372
  4.     for <icon-group-addresses@cheltenham.CS.Arizona.EDU>; Mon, 22 Sep 1997 08:22:05 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA02917; Mon, 22 Sep 1997 08:22:05 -0700
  7. To: icon-group@cs.arizona.edu
  8. Date: Mon, 22 Sep 1997 14:55:37 +1000
  9. From: Stuart.Robinson@anu.edu.au (Stuart Robinson)
  10. Message-Id: <Stuart.Robinson-2209971455380001@asianstmg-221.anu.edu.au>
  11. Organization: ANU
  12. Sender: icon-group-request@cs.arizona.edu
  13. Subject: if not find a and/or b, do x
  14. Errors-To: icon-group-errors@cs.arizona.edu
  15. Status: RO
  16.  
  17. Hello, all.
  18.  
  19. I want to write up a little program that does, among other things, some
  20. error checking for me.  Basically, if the program finds a certain element
  21. in a line, I want it to look for two other elements and to write the line
  22. if one or both of those two other elements are missing.
  23.  
  24. Ex.
  25.  
  26. if find( "{T" ) 
  27.     then if not find( "{A" | "{O" )
  28.             then write( line )
  29.  
  30. should write (1), (2), and (3), but not (4)
  31.  
  32. 1. {T
  33. 2. {T {A
  34. 3. {T {O
  35. 4. {T {O {A
  36.  
  37. Thanks in advance.
  38.  
  39. Cheers,
  40. Stuart
  41.  
  42. -- 
  43. Stuart Robinson <Stuart.Robinson@no_spam!anu.edu.au>
  44. The Australian National University
  45. *TO REPLY, REMOVE "no_spam!" FROM E-MAIL ADDRESS GIVEN ABOVE
  46.